<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div id="d1" style="font-size: 160px;color:darkorange;background-color: red;"></div>
		<script>
			function showTime(){
			var now=new Date();
			var year=now.getFullYear();
			var month=now.getMonth()+1;
			var hour=now.getHours();
			hour=hour<10?"0"+hour:hour;
			var minute=now.getMinutes();
			minute=minute<10?"0"+minute:minute;
			var second=now.getSeconds();
			second=second<10?"0"+second:second;
			var w=now.getDate();
			var d=now.getDay();
			var weeks=["日","一","二","三","四","五","六"]
			d1.innerHTML=year+"年"+month+"月"+d+"日"+hour+":"+minute+":"+second+" 星期"+weeks[d];
			}
			showTime();
			setInterval(showTime,1000)
		</script>
	</body>
</html>
